package com.jerry.huihome.module.home.fragment;

import android.graphics.Color;
import android.support.v4.view.ViewPager;

import com.jerry.huihome.R;
import com.jerry.huihome.base.BaseFragment;
import com.jerry.huihome.module.home.adapter.LiveAdapter;
import com.jerry.huihome.views.SlidingTabLayout;

import butterknife.BindView;

/**
 * Created by LGuipeng on 2016/5/11.
 */
public class LiveFragment extends BaseFragment{
    @BindView(R.id.vp_live)
    protected ViewPager viewPager;
    @BindView(R.id.slidingBar)
    protected SlidingTabLayout mSlidingBar;
    private LiveAdapter liveAdapter;

    public LiveFragment(){
    }

    @Override
    protected int getLayoutId(){
        return R.layout.fragment_live;
    }

    @Override
    protected void initViews(){
        liveAdapter = new LiveAdapter(getChildFragmentManager());
        mSlidingBar.setSelectedIndicatorColors(Color.parseColor("#18BEBB"));
        viewPager.setAdapter(liveAdapter);
        mSlidingBar.setViewPager(viewPager);
        viewPager.setCurrentItem(1);
    }
}
